package customer

import (
	"context"
	"git.mycaigou.com/gfyx/micro-gfyx-oppty-service/infrastructure/common/utils"
)

// 客户repo
type CustomerRepoIface interface {
	// QueryCustomer 查询客户数据
	QueryCustomer(ctx context.Context, condition map[string]interface{}, pageInfo *utils.PageInfo) (int64, []*Customer, error)
	// SaveCustomer 保存客户信息
	SaveCustomer(ctx context.Context, po *Customer) error
	//根据客户ID获取客户信息
	GetCustomerInfoByUid(ctx context.Context, customerUid string) (*Customer, error)
	//获取客户云数据
	GetCustomerCloundData(ctx context.Context, customerPoolGUID string) (*Customerpoolclouddata, error)
	//保存客户云数据
	SaveCustomerCloud(ctx context.Context, po *Customerpoolclouddata) error
}
